<%@ Page language="c#" Codebehind="ModerateForum.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.Moderation.ModerateForum" MasterPageFile="~/ControlPanel/Masters/ForumModeration.master" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Components" %>

<asp:Content ContentPlaceHolderId="DescriptionRegion" runat="server">
	<CP:ResourceControl runat="server" resourcename="CP_Moderation_Posts" />
</asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
    <CP:ControlPanelSelectedNavigation SelectedNavItem="CommonTasks" runat="server" />
	<div class="CommonFormArea">
		<cp:StatusMessage runat="server" id="NoPostsToModerate" Visible="false" Success="false" ResourceFile="ControlPanelResources.xml" ResourceName="CP_Moderation_NoPostsToModerate" />

		<asp:Repeater id="PostRepeater" Runat="server">
			<HeaderTemplate>
				<ul class="ForumPostList">
			</HeaderTemplate>
			<ItemTemplate>
				<li id="Post_<%# ((Post)Container.DataItem).PostID %>">

					<asp:HyperLink id="Approve" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="ApproveView" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="Delete" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="JoinSplit" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="Move" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="EditUser" runat="server" cssclass="CommonTextButton" visible="false" />
					<asp:HyperLink id="ToggleUserModeration" runat="server" cssclass="CommonTextButton" />
					<asp:HyperLink id="ModerationHistory" runat="server" cssclass="CommonTextButton" visible="false" />

					<cp:PostFlatPreview id="PostPreview" LinkToParent="true" runat="server">
					    <SkinTemplate>
                            <asp:Repeater id="PostRepeater" Runat="server">
                                <HeaderTemplate>
	                                <ul class="ForumPostList">
                                </HeaderTemplate>
                                <ItemTemplate>
	                                <li>
	                                <div class="ForumPostArea">
		                                <h4 class="ForumPostHeader">
			                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
				                                <tr valign="middle">
					                                <td align="left"><a runat="server" id="PostAnchor"><asp:Image runat="server" border="0" ImageUrl="~/ControlPanel/images/icon_post_show.gif" /></a>&nbsp;<%# Formatter.FormatAgoDate (((ForumPost) Container.DataItem).PostDate) %></td>
				                                </tr>
			                                </table>
		                                </h4>
		                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
			                                <tr valign=top>
				                                <td rowspan="2" class="ForumPostUserArea">
					                                <div class="ForumPostUserContent">
					                                <ul class="ForumPostUserPropertyList">
						                                <li class="ForumPostUserName">
							                                <cp:UserOnlineStatus runat="server" id="OnlineStatus" />
							                                <asp:Literal runat="server" id="Username" />
						                                </li>
						                                <li class="ForumPostUserAvatar">
							                                <cp:UserAvatar runat="server" Border="1" PadImage="False" id="Avatar" />
						                                </li>
						                                <li>
							                                <cp:PostIcons runat="server" id="PostIcon" />
						                                </li>
						                                <li>
							                                <cp:UserAttribute FormatString="{0}" Attribute="Joined" runat="server" id="JoinedAttribute" />
						                                </li>
						                                <li>
							                                <cp:UserAttribute FormatString="{0}" Attribute="Location" runat="server" id="LocationAttribute" />
						                                </li>
						                                <li>
							                                <cp:UserAttribute FormatString="{0}" Attribute="Posts" runat="server" id="PostsAttribute" />
						                                </li>
						                                <li>
							                                <cp:UserAttribute FormatString="{0}" Attribute="Points" runat="server" id="PointsAttribute" />
						                                </li>
						                                <li class="ForumPostRoleIcons">
							                                <cp:RoleIcons runat="server" id="RoleIcon" EnablePadding="false"/>
						                                </li>
					                                </ul>
					                                </div>
				                                </td>
				                                <td class="ForumPostContentArea">
					                                <div class="ForumPostTitleArea">
						                                <h4 class="ForumPostTitle">
							                                <asp:Literal runat="server" id="Emoticon" />
							                                <asp:HyperLink runat="server" id="Subject" Target="_blank" />
						                                </h4>
						                                
						                                <div>
						                                    <CP:ForumPostAttachment runat="server" id="PostAttachment" CssClass="ForumPostAttachment" />
                                                        </div>
                            							
						                                <div class="ForumPostAttachment">
						                                </div>

						                                <div class="ForumPostThreadStatus">
						                                </div>

						                                <div class="ForumPostButtons">
						                                </div>
					                                </div>
                            						
					                                <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="table-layout: fixed;">
						                                <tr><td>
						                                <div class="ForumPostBodyArea">
						                                <div class="ForumPostContentText" id = "PostViewWrapper" runat="server">
							                                <cp:TextPost runat="server" id="TextPost">
							                                    <SkinTemplate>
								                                    <asp:Literal id="Body" Runat="server" />
                                                                    <asp:Literal id="EditNotes" runat="server" />
                                                                    <asp:Literal id="Signature" Runat="server" />
							                                    </SkinTemplate>
							                                </cp:TextPost>
						                                </div>
						                                </div>
						                                </td></tr>
					                                </table>
				                                </td>
			                                </tr>
			                                <tr valign="bottom">
				                                <td class="ForumPostFooterArea">								
					                                <ul class="ForumPostStatistics" style="clear: both;">
						                                &nbsp;
					                                </ul>
				                                </td>
			                                </tr>
		                                </table>
	                                </div>
	                                </li>
                                </ItemTemplate>
                                <FooterTemplate>
	                                </ul>
                                </FooterTemplate>
                            </asp:Repeater>
					    </SkinTemplate>
					</cp:PostFlatPreview>
					<br/><br/>
				</li>
			</ItemTemplate>
			<FooterTemplate>
				</ul>
			</FooterTemplate>
		</asp:Repeater>

	</div>
</asp:Content>